package com.sigerap.insumo.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.sigerap.proveedor.model.Proveedor;
import com.sigerap.proveedor.service.ProveedorService;
/**
 * 
 * @author Spirit-20121
 *
 */
public class RegistrarNuevoInsumoAction extends ActionSupport{

	
	private static final long serialVersionUID = 1L;
	private List<Proveedor> proveedores;
	private ProveedorService service;
	
	public RegistrarNuevoInsumoAction(){
		service = new ProveedorService();
	}
	
	public String execute()throws Exception{
		String retorno="exito";		
		proveedores=service.listarProveedores();
		
		return retorno;
	}

	public List<Proveedor> getProveedores() {
		return proveedores;
	}

	public void setProveedores(List<Proveedor> proveedores) {
		this.proveedores = proveedores;
	}
	
	
}
